//
//  UIButton+BOCNetworkImage.h
//  BOCImageTools
//
//  Created by LeungChaos on 16/5/11.
//  Copyright © 2016年 liang. All rights reserved.
//

#import "BOCHeader.h"

@interface UIButton (BOCNetworkImage)
/********* setImage ********/

- (void)setNetworkImageForState:(UIControlState)state withURL:(NSURL *)url;

- (void)setNetworkImageForState:(UIControlState)state withURL:(NSURL *)url completion:(DownloadCompletionBlock)completionBlock;

- (void)setNetworkImageForState:(UIControlState)state withURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage completion:(DownloadCompletionBlock)completionBlock;

- (void)setNetworkImageForState:(UIControlState)state withURL:(NSURL *)url progress:(BOCProgressHandlerProgressBlock)progressBlock completion:(DownloadCompletionBlock)completionBlock;

- (void)setNetworkImageForState:(UIControlState)state withURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage progress:(BOCProgressHandlerProgressBlock)progressBlock completion:(DownloadCompletionBlock)completionBlock;

/******** setBackgroundImage  *********/

- (void)setNetworkBackgroundImageForState:(UIControlState)state withURL:(NSURL *)url;

- (void)setNetworkBackgroundImageForState:(UIControlState)state withURL:(NSURL *)url completion:(DownloadCompletionBlock)completionBlock;

- (void)setNetworkBackgroundImageForState:(UIControlState)state withURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage completion:(DownloadCompletionBlock)completionBlock;


- (void)setNetworkBackgroundImageForState:(UIControlState)state withURL:(NSURL *)url progress:(BOCProgressHandlerProgressBlock)progressBlock completion:(DownloadCompletionBlock)completionBlock;

- (void)setNetworkBackgroundImageForState:(UIControlState)state withURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage progress:(BOCProgressHandlerProgressBlock)progressBlock completion:(DownloadCompletionBlock)completionBlock;

@end
